package com.wyp.utils.redis.prekey.pre;

import com.wyp.utils.redis.prekey.BaseKeyPrefix;

/**
 * 具体子类实现
 *
 * @author: Oliver
 */
public class UserKey extends BaseKeyPrefix {
    public static final int TOKEN_EXPIRE = 3600 * 24 * 2;

    public UserKey(String prefix) {
        super(prefix);
    }

    public UserKey(Integer expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }


    //根据id进行缓存用户
    public static UserKey USERKEY_BY_ID = new UserKey("id");
    public static UserKey token = new UserKey(TOKEN_EXPIRE, "token");
}
